
<form method="post" action="{-$body.url-}&act={-if $L.id-}eok&id={-$L.id-}{-else-}aok{-/if-}">

<div class="bodytabdiv">
<table class='bodytab' cellspacing='1' id="columnx">
<tr>
	<th class='th' colspan='2'>{-if $L.id-}修改{-else-}添加{-/if-}字段节点</th>
</tr>

<tr>
	<td width='90'>数据表</td>
	<td>{-$P.tableName-}</td>
</tr>

<tr>
	<td>分组名</td>
	<td><input name="name" value='{-$L.name-}'/></td>
</tr>

<tr>
	<td >优先级</td>
	<td><input name='iOrder' value='{-$L.iOrder|default:'0'-}' size='2' maxlength='2'></td>
</tr>

<tr>
 <td>是否隐藏</td>
 <td>
	<label for="d_isHide1"><input type="radio" name="isHide" id="d_isHide1" value='1'{-if $L.isHide-} checked='true'{-/if-}>是</label>
	<label for="d_isHide0"><input type="radio" name="isHide" id="d_isHide0" value='0'{-if !$L.isHide-} checked='true'{-/if-}>否</label>
 </td>
</tr>

</table>
</div>


<input type='hidden' name='jurl' value='{-$_ENV.referer-}'>

<div class='bodysubmit'>
<input type='submit' value='递交'>
<input type='reset' value='默认'>
</div>

</form>

<div class='bodyfooter'>
	<a href='{-$_ENV.referer-}'>返回</a>
</div>

<script type="text/javascript">

new XForm('columnx', function(){
	var elements	= this.dom.elements;
	try{
		var e = elements["name"];
		if(!e.value.match(/^([^\x00-\xff]|\w){1,15}$/)){
			alert('字段分组名不能为空,并且不能包含特殊字符!');
			e.select(); e.focus(); return true;
		}

		var e = elements['iOrder'];
		if( !e.value.match(/^\d{1,2}$/)){
			alert('优先级只能是不大于100的数字');
			e.select(); e.focus(); return true;
		}

	}catch(e){
		return true;
	}
});

</script>